package org.example.config;

import org.springframework.stereotype.Component;

import javax.servlet.*;
import java.io.IOException;
import java.nio.file.AccessDeniedException;

/**
 * @author : yurui
 * @date : 2024/5/15
 * @TIME : 21:13
 * @project : security
 */
@Component
public class MyFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        throw new AccessDeniedException("filter");
    }
}
